package com.xuexi;

import java.util.ArrayList;
import java.util.Iterator;

public class Student {
	private String name;
	private char sex;
	private String grade;
	
	public Student(String name,char sex, String grade) {
		super();
		this.name=name;
		this.sex=sex;
		this.grade=grade;
		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public char getSex() {
		return sex;
	}

	public void setSex(char sex) {
		this.sex = sex;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public static void main(String[] args) {
		ArrayList<Integer> grade = new ArrayList<Integer>();
		grade.add(87);
		grade.add(79);
		grade.add(70);
		grade.add(64);
		grade.add(48);
		grade.add(16);
		grade.add(0);
		Iterator<Integer> it = grade.iterator();
		while (it.hasNext()) {
			Integer i = it.next();
			if (i == 0) {
				it.remove();
			}
		}
		System.out.println(grade);
	}

}